#pragma once

struct lua_State;
class GmLua
{
	static int on_error(lua_State *L);
public: 
	GmLua();
	~GmLua();
	void init();
	
	std::string callFunction(const std::string& fun, const std::string& param);
	std::string GmLua::callFunction(const std::string& tbl, const std::string& fun, const std::string& param);
	void doString(const std::string& str);
	void doFile(const std::string& path);
private:
	lua_State* m_luaState;
};


